define(function(require, exports){
	exports.onMain = function(boot,data,app){
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title:LANG('BiddingX 投放渠道列表'),
			type: 'sidebar'
		});

		con.createBusiness(data.name, 'adExchange/action/adExchange.main', {
		}, function(mod, created){
			if(created){
				mod.reload();
			}
		});
	};

	exports.onWeight = function(boot,data,app){
		var con = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title:LANG('渠道权值设置'),
			type: 'sidebar'
		});

		con.createBusiness(data.name, 'adExchange/action/weight.base', function(mod) {
			mod && mod.reset();
		});
	};
});